package oktx.feign.participant;

import com.fasterxml.jackson.annotation.JsonIgnore;
import oktx.participant.Participant;
import oktx.RemoteType;

/**
 * Created by huangdachao on 2018/5/30 15:57.
 */
public class RestTccParticipant implements Participant {
    private String xid;  // 本次调用分配的事务ID
    private String ip;  // 远程服务IP
    private int port;   // 远程服务端口号

    @JsonIgnore
    @Override
    public RemoteType getType() {
        return RemoteType.rest;
    }

    @Override
    public String getXid() {
        return xid;
    }

    public void setXid(String xid) {
        this.xid = xid;
    }

    @Override
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
